import { COOKIE_TOKEN_KEY } from 'utils/SystemConstants'
import Cookies from 'js-cookie'

/**
 * 判断当前是否登录
 */
export function isLogin() {
  const token = Cookies.get(COOKIE_TOKEN_KEY)
  return !!token
}
